package com.jack.jetpackapp.expand;

import androidx.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

import static com.jack.jetpackapp.expand.LevelType.TYPE_NOMAL;
import static com.jack.jetpackapp.expand.LevelType.TYPE_VIP;

/**
 * 该注解可以用于替代枚举
 * https://blog.csdn.net/mjx19951117/article/details/105947411/
 */
@IntDef({TYPE_VIP, TYPE_NOMAL})
// 表示注解在什么时候还有效
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface LevelType {
    int TYPE_VIP = 1;
    int TYPE_NOMAL = 2;
}
